﻿@using DEL.Webmonitor;
@model List<InfoOriginal>
@{
    ViewBag.Title = "原始信息";
}

@{
    ViewBag.CurrentMenu = "InfoOriginal";
}

<table>
    <tr>
        <td>
            @foreach (var w in ViewBag.websiteList)
            {
                var itemlist = Model.FindAll(a => a.WebsiteId == w.Id).ToList();
                //如果信息数量大于0，则是显示，否则不显示
                if (itemlist.Count > 0)
                {
                    <div style="float: left;padding-right:10px;">
                        <h3>@w.WebsiteName<span><a href="@Url.Action("GetWebsiteJKNews", "InfoOriginal", new { websiteId = @w.Id ,pageindex = 1})" , new { style="float:right;padding-right:10px;font-size:medium;" }>更多>></a></span></h3>
                        <ul>
                            @foreach (var item in itemlist)
                            {
                                <li>
                                    <span style=" float:right;">&nbsp;&nbsp;@item.CreatedOn.ToString("MM/dd HH:mm")</span>
                                    <a href="@item.Url" target="_blank" title="网站：@item.WebsiteId &#10;栏目：@item.BigclassId &#10;标题：@item.Title &#10;内容：@item.Summary">@(@item.Title.ToString().Length > 20 ? @item.Title.ToString().Substring(0, 20) + "..." : @item.Title)</a>
                                </li>
                            }
                        </ul>
                    </div>
                }
                else
                {
                    continue;
                }
            }
        </td>
    </tr>
</table>
